﻿package cn.smbms.service.user;

import java.sql.Connection;
import java.util.List;

import cn.smbms.pojo.User;

public interface UserService {
	//增加用户信息
	public boolean add(User user);
	
	//用户登录
	public User login(String userCode,String userPassword);
	// 查询用户列表
	public List<User> getUserList(String queryUserName,int pageIndex,int pageSize);
	
	
	//根据userCode查询出User
	public User selectUserCodeExist(String userCode);
	
	//根据ID删除user
	public boolean deleteUserById(Integer delId);
	
	 //根据ID查找user
	public User getUserById(String id);
	
	//修改用户信息
	public boolean modify(User user);
	
	//根据userId修改密码
	public boolean updatePwd(int id,String pwd);
	//查询总数量
	  public int getCounts(String userName);
}
